package main.entity;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.Past;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

//@Table
@Component
@Entity(name="reply")
public class ReplyVO extends BaseVO {

	/**
	 * @author Administrator
	 */
	private static final long serialVersionUID = -8886066452557649378L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="rpl_ID" , unique=true, nullable=true)
	private Integer reply_ID;
	@Column(name="uID", nullable=true)
	private Integer uID;
	@Column(name="threads_ID", nullable=true)
	private Integer threads_ID;
	@NotEmpty
	@Column(name="rpl_content", nullable=true)
	private String reply_content;
	@Past
	@Column(name="rpl_time", nullable=true)
	private Date reply_time;
	@Transient
	private String unm;//just for test
	
	public Integer getThreads_ID() {
		return threads_ID;
	}
	public void setThreads_ID(Integer threads_ID) {
		this.threads_ID = threads_ID;
	}
	public String getUnm() {
		return unm;
	}
	public void setUnm(String unm) {
		this.unm = unm;
	}
	public Date getReply_time() {
		return reply_time;
	}
	public void setReply_time(Date reply_time) {
		this.reply_time = reply_time;
	}
	public Integer getReply_ID() {
		return reply_ID;
	}
	public void setReply_ID(Integer reply_ID) {
		this.reply_ID = reply_ID;
	}
	public Integer getuID() {
		return uID;
	}
	public void setuID(Integer uID) {
		this.uID = uID;
	}
	public String getReply_content() {
		return reply_content;
	}
	public void setReply_content(String reply_content) {
		this.reply_content = reply_content;
	}
	
}
